package com.vcar.LDiceClient.loader
{
    import com.vcar.LDiceClient.config.MediatorName;

    import org.puremvc.as3.patterns.mediator.Mediator;

    /**
     * 应用的预加载
     * @author rhj
     * 程序在加载完preload后，初始化主场景，主场景初始化完后，preload发出event.complete消息
     */
    public class PreloaderMediator extends Mediator
    {

        public function PreloaderMediator(viewComponent:Object=null)
        {
            super(MediatorName.PreloaderMediator, viewComponent);
        }

        /**
         *监听主程序与preloader的交互消息
         * @return
         *
         */
        override public function listNotificationInterests():Array
        {
            return [];
        }

        /**
         * 得到预加载类
         * @return
         *
         */
        public function get preLoader():Preloader
        {
            return viewComponent as Preloader;
        }



    }
}

